package com.pscsoft.lucene.utils;

import java.text.ParseException;
import java.util.Date;


public class DateUtilsTest {
    public static void main(String[] args) throws ParseException {
        Date d = new Date();
        String s = DateUtils.date2String(d);
        System.out.println("格式化: " + s);
        System.out.println("------------------");

        String str = "19/Oct/2020:00:00:36";
        Date d2 = DateUtils.string2Date(str);
        System.out.println("解析: " + d2);
    }
}
